package com.sugar.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.concurrent.ExecutorService;

@Service
@Slf4j
public class FileProcessingService {

    @Resource(name = "businessTaskExecutor")
    private ExecutorService executor;

    public void processFile() {
        executor.submit(() -> {
            log.info("处理文件");
            // handle file
        });
    }
}

